<template>
  <component :is="componentId"></component>
</template>
<script>
import ErjiAudit from "./ErjiAudit.vue";
import YijiAudit from "./YijiAudit.vue";
import { GetPermission } from "@/utils/auth";
export default {
  components: { YijiAudit, ErjiAudit },
  data() {
    return {
      componentId: "YijiAudit",
    };
  },
  created() {
    if (GetPermission().areacode.length == 4) {
      this.componentId = "ErjiAudit";
    }
  },
};
</script>
